﻿<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" >
    
    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="resColorScheme.xaml" />
    </ResourceDictionary.MergedDictionaries>
    
        
    <Style x:Key="AddEditViewContentStyle" TargetType="Grid">
        <Setter Property="Margin" Value="12" />
        <Setter Property="TextBlock.Foreground" Value="{StaticResource brushAddEditText}" />
    </Style>


    <Style x:Key="outerInsetBorderStyle" TargetType="Border" >
        <Setter Property="CornerRadius" Value="32,20,20,32" />
        <Setter Property="BorderBrush" Value="{StaticResource brushOuterInsetBorder}" />
        <Setter Property="BorderThickness" Value="0,0,2,2" />
    </Style>

    <Style x:Key="innerInsetBorderStyle" TargetType="Border" >
        <Setter Property="CornerRadius" Value="32,20,20,32" />
        <Setter Property="BorderBrush" Value="{StaticResource brushInnerInsetBorder}" />
        <Setter Property="BorderThickness" Value="1,1,0,0" />
    </Style>
    
    
    <!-- Add/Edit image border to provide rollover highlight -->
    
    <Style x:Key="BorderedImageStyle" TargetType="ContentControl" >
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ContentControl">
                    <Grid>
                        <Ellipse x:Name="Highlight" Fill="{StaticResource brushAddEditImageBorder}" >
                            <Ellipse.OpacityMask>
                                <RadialGradientBrush>
                                    <GradientStop Color="#FFFFFFFF" Offset="0" />
                                    <GradientStop Color="#00000000" Offset="1"/>
                                </RadialGradientBrush>
                            </Ellipse.OpacityMask>
                        </Ellipse>
                        <ContentPresenter Margin="2" />
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True" >
                            <Setter TargetName="Highlight" Property="Fill"
                                    Value="{StaticResource brushAddEditImageRolloverBorder}" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

</ResourceDictionary>